//
//  TMCapitalizeMacro.m
//  TMCapitalize
//
//  Created by Anshu Chimala on 1/1/10.
//  Copyright 2010 Home. All rights reserved.
//

#import "TMCapitalizeMacro.h"


@implementation TMCapitalizeMacro
@synthesize delegate = _delegate;

static NSString *lipsum = @"Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.";

- (NSString *)title {
	return @"Capitalize Text";
}

- (NSString *)author {
	return @"Anshu Chimala";
}

- (NSString *)description {
	return @"Capitalize every character of your text. Use this to yell at your \"friends\" on the Internet.";
}

- (void)processText:(NSString *)text {
	text = [text uppercaseString];
	_delegate.shouldPasteAfterwards = YES;
	[_delegate macro:self didProcessTextWithResult:text];
}

- (NSString *)beforeText {
	return lipsum;
}

- (NSString *)afterText {
	return [lipsum uppercaseString];
}

@end
